function CLevelSettings(aBallSpeed,aNumBall){
    
    var _aBallSpeed;
    var _aBallNumber;
    var _aBallColors;
    var _aHeroPos;
    var _aCurveLevel;
    
    this._init = function(aBallSpeed){
        this._initBallSpeed(aBallSpeed);
        this._initBallNumber(aNumBall);
        this._initBallColors();
        this._initHeroPos();
        this._initCurveLevel();
    };
    
    this._initBallSpeed = function(aBallSpeed){
        _aBallSpeed = new Array();
       
        //LEVEL 1
        _aBallSpeed[0] = aBallSpeed[0];
        
        //LEVEL 2
        _aBallSpeed[1] = aBallSpeed[1];   
        
        //LEVEL 3
        _aBallSpeed[2] = aBallSpeed[2];
       
    };
    
    this._initBallNumber = function(aNumBall){
        _aBallNumber = new Array();
        
        //LEVEL 1
        _aBallNumber[0] = aNumBall[0];
        
        //LEVEL 2
        _aBallNumber[1] = aNumBall[1];
        
        //LEVEL 3
        _aBallNumber[2] = aNumBall[2];
    };
    
    this._initBallColors = function(){
        _aBallColors = new Array();
        _aBallColors[0] = BALL_COLORS - 1;
        _aBallColors[1] = BALL_COLORS;
        _aBallColors[2] = BALL_COLORS;
    };
    
    this._initHeroPos = function(){
        _aHeroPos = new Array();
        
        //LEVEL 1
        _aHeroPos[0] = new createjs.Point(500,200);
        
        //LEVEL 2
        _aHeroPos[1] = new createjs.Point(450,280);
        
        //LEVEL 3
        _aHeroPos[2] = new createjs.Point(500,200);
    };
    
    this._initCurveLevel = function(){
        _aCurveLevel = new Array();
        
        //LEVEL 1
		
        _aCurveLevel[0] = [ [-88,300.9],[-48,266.9],[2,229.9],[52,193.9],[92,168.9],[141.75,135.95],[183.15,114.2],[253.25,88.25],[304.1,75.65],[367.2,63.9],[421.55,58.95],
                            [460.1,58.95],[505.7,59.65],[542.5,62.65],[582.85,68.8],[619.65,77.05],[658.2,88.95],[695.05,104.75],[731.65,125.75],[759.55,149.25],[781.1,175.55],
                            [795.15,203.4],[803,236.75],[804.95,271.8],[800.9,305.1],[791.1,338.05],[772.85,368.4],[750.4,394.85],[719.05,419.75],[689.25,437.8],[657.7,451.3],
                            [624.4,462.15],[592.3,469.55],[560.55,475.3],[523.75,478.8],[490.45,480.25],[453.65,479.9],[414,476.55],[380.7,471.8],[347.4,465.5],[312.35,455.85],
                            [279.05,443.75],[249.05,428.5],[212.25,402.2],[184.2,368.9],[167.2,337.35],[159.15,302.3],[158.6,268.45],[167.55,240.4],[193.85,222.35],[222.75,226.55],
                            [241.35,251.8],[238.9,281.6],[245.2,311.6],[262.05,343.15],[284.8,366.1],[311.1,384],[353.2,401.5],[407.55,413.8],[458.35,418.85],[509.2,418.85],
                            [558.3,415.2],[609.3,404.3],[647.85,387.85],[684.7,361.9],[708,332.1],[722,298.8],[725.55,269],[715,240.95],[688.7,226.9],[658.75,232.15],[645.95,260.2],
                            [642.8,290.35],[627,317],[600.9,337.2],[571.1,350],[538.3,357.7],[505,360.5],[459.4,360.15],[420.85,355.05],[387.55,345.6],[355.45,329.1],[332,305.8],
                            [318.85,274.4],[317.1,246.35]];
        
        
                            
        //LEVEL 2
        _aCurveLevel[1] = [ [271.65,-62.1],[381.65,-26.1],[464.35,2.85],[547.1,35.6],[583.25,51.8],[617.75,67.8],[650.5,85.05],[679.8,102.3],[709.1,121.25],[734.95,141.6],
                            [765.45,169.7],[790.6,200.7],[804.75,227.05],[809.9,254.8],[803.55,283.45],[788,309.8],[766.3,333.9],[740.3,355.8],[711,376.15],[676.5,396.85],
                            [646.85,412.35],[615.85,427],[577.95,441.8],[545.2,453],[505.55,464.9],[469.35,473.35],[424.55,481.1],[378,485.75],[326.3,484.05],[286.65,477.15],
                            [251.7,463.35],[218.95,439.25],[193.6,408.2],[178.1,375.45],[167.9,343.05],[162.25,306.85],[161.55,263.8],[165.7,227.6],[173.6,194.85],[185,162.1],
                            [203.25,129.35],[223.95,103],[248.05,83.15],[275.65,69.35],[308.4,64.2],[341.15,65.95],[373.9,70.95],[403.15,76.25],[453.15,88.7],[501.4,103.35],
                            [541.05,117.1],[608.25,146.6],[656.35,172.8],[700.1,205.55],[722.35,239.65],[717.55,266.7],[701.35,292.55],[673.75,316.7],[640.85,339.1],[609.8,355.65],
                            [539.15,383.4],[485.75,398.9],[435.75,407.85],[382.3,409.6],[354.75,403.7],[327.15,384.75],[311.65,357.2],[303.05,327.9],[299.6,291.7],[302.85,252.05],
                            [309.6,221.05],[321.65,188.3],[340.6,162.95],[361.3,150.55],[385.4,149.35],[416.45,154.7],[456.75,166.4],[503.5,183.65],[556.9,206.2]];
                        
                        
        _aCurveLevel[2] = [[-88,300.9],[-48,266.9],[2,229.9],[52,193.9],[92,168.9],[141.75,135.95],[183.15,114.2],[253.25,88.25],[304.1,75.65],[367.2,63.9],[421.55,58.95],
                            [460.1,58.95],[505.7,59.65],[542.5,62.65],[582.85,68.8],[619.65,77.05],[658.2,88.95],[695.05,104.75],[731.65,125.75],[759.55,149.25],[781.1,175.55],
                            [795.15,203.4],[803,236.75],[804.95,271.8],[800.9,305.1],[791.1,338.05],[772.85,368.4],[750.4,394.85],[719.05,419.75],[689.25,437.8],[657.7,451.3],
                            [624.4,462.15],[592.3,469.55],[560.55,475.3],[523.75,478.8],[490.45,480.25],[453.65,479.9],[414,476.55],[380.7,471.8],[347.4,465.5],[312.35,455.85],
                            [279.05,443.75],[249.05,428.5],[212.25,402.2],[184.2,368.9],[167.2,337.35],[159.15,302.3],[158.6,268.45],[167.55,240.4],[193.85,222.35],[222.75,226.55],
                            [241.35,251.8],[238.9,281.6],[245.2,311.6],[262.05,343.15],[284.8,366.1],[311.1,384],[353.2,401.5],[407.55,413.8],[458.35,418.85],[509.2,418.85],
                            [558.3,415.2],[609.3,404.3],[647.85,387.85],[684.7,361.9],[708,332.1],[722,298.8],[725.55,269],[715,240.95],[688.7,226.9],[658.75,232.15],[645.95,260.2],
                            [642.8,290.35],[627,317],[600.9,337.2],[571.1,350],[538.3,357.7],[505,360.5],[459.4,360.15],[420.85,355.05],[387.55,345.6],[355.45,329.1],[332,305.8],
                            [318.85,274.4],[317.1,246.35]];
    };
    
    this.getBallSpeedForLevel = function(iLevel){
        return _aBallSpeed[iLevel-1];
    };
    
    this.getBallNumberForLevel = function(iLevel){
        return _aBallNumber[iLevel-1];
    };
    
    this.getBallColorsForLevel = function(iLevel){
        return _aBallColors[iLevel-1];
    };
    
    this.getHeroPosForLevel = function(iLevel){
        return _aHeroPos[iLevel-1];
    };
    
    this.getCurveForLevel = function(iLevel){
        return _aCurveLevel[iLevel-1];
    };
    
    this.getNumLevels = function(){
        return _aCurveLevel.length;
    };
    
     this._init(aBallSpeed,aNumBall);
}